package org.fh.domain;

import java.util.List;

/**
 * @Author: wwy
 * @Date: 2020/10/19 16:34
 */
public class DataFrame {
    private Word head;					// 帧头0xAA, 0x55
    private Word length;				// 数据长度: 数据帧中所有数据长度
    private Word cmd;					// 命令
    private Word srcID;				// 源ID
    private Word destID;				// 目的ID
    private Word number;				// 帧序号
    private List<String> Data;  			// 数据: 最长不得超过306字节(包括校验位)
    private String dataStr;//数据字符串

    public Word getHead() {
        return head;
    }

    public void setHead(Word head) {
        this.head = head;
    }

    public Word getLength() {
        return length;
    }

    public void setLength(Word length) {
        this.length = length;
    }

    public Word getCmd() {
        return cmd;
    }

    public void setCmd(Word cmd) {
        this.cmd = cmd;
    }

    public Word getSrcID() {
        return srcID;
    }

    public void setSrcID(Word srcID) {
        this.srcID = srcID;
    }

    public Word getDestID() {
        return destID;
    }

    public void setDestID(Word destID) {
        this.destID = destID;
    }

    public Word getNumber() {
        return number;
    }

    public void setNumber(Word number) {
        this.number = number;
    }

    public List<String> getData() {
        return Data;
    }

    public void setData(List<String> data) {
        Data = data;
    }

    public String getDataStr() {
        return dataStr;
    }

    public void setDataStr(String dataStr) {
        this.dataStr = dataStr;
    }
}
